﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using eKanbanWPF.Model;

namespace eKanbanWPF.View.Statistics
{
    /// <summary>
    /// Interaction logic for StatisticsNumerical.xaml
    /// </summary>
    public partial class StatisticsNumerical : Window
    {
        private DSStatistics data;
        public StatisticsNumerical()
        {
            InitializeComponent();
        }

        public DSStatistics Data
        {
            get { return data; }
            set
            {
                data = value;
                gridMember.DataSource = data;
                gridMember.PopulateColumns();
                gridTask.DataSource = data.TaskStats;
                gridTask.PopulateColumns();
                gridFeature.DataSource = data.FeatureStats;
                gridFeature.PopulateColumns();
            }
        }
    }
}
